package com.corpgovernment.travelstandard.entity.db;

import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 酒店差标价格表
 **/
@Alias("mbTravelstandHotelQuarter")
@Data
@Table(name = "mb_travelstand_hotel_quarter")
public class MbTravelstandHotelQuarter extends BaseEntity {

    /**
     * 差标id
     **/
    @Column(name = "ts_hotel_id")
    private Long tsHotelId;

    /**
     * 区域id
     **/
    @Column(name = "ts_hotel_area_id")
    private Long tsHotelAreaId;

    /**
     * 均价上限
     **/
    @Column(name = "price_upper_limit")
    private BigDecimal priceUpperLimit;

    /**
     * 开始日期
     **/
    @Column(name = "begin_date")
    private Date beginDate;

    /**
     * 结束日期
     **/
    @Column(name = "end_date")
    private Date endDate;

    /**
     * 开始日期【MM-dd】
     **/
    @Column(name = "start_time")
    private String startTime;

    /**
     * 结束日期【MM-dd】
     **/
    @Column(name = "end_time")
    private String endTime;


    /**
     * 区域名称
     */
    @Transient
    private String areaName;

    /**
     * 区域类型
     */
    @Transient
    private String areaType;

    @Transient
    private String hotelType;

    /**
     * 	差标价格浮动百分比
     */
    private BigDecimal floatPercentage;

    /**
     * 差标价格浮动固定金额
     */
    private BigDecimal floatAmount;

    /**
     * 	差标价格浮动类型 (percentage百分比/amount金额固定值)
     */
    private String floatType;
}
